import request from '@/utils/request'
import Vue from 'vue'
// 获取列表
export const queryList = data => {
    return request({
        url: Vue.prototype.$api.orderSource.index,
        method: 'post',
        data,
    })
}
// 获取列表
export const editOrderSource = data => {
    return request({
        url: Vue.prototype.$api.orderSource.edit,
        method: 'post',
        data,
    })
}
// 获取列表
export const getOperationLabelList = data => {
    return request({
        url: Vue.prototype.$api.orderSource.operationLabelList,
        method: 'post',
        data,
    })
}

// 获取列表
export const getChannelLabelList = data => {
    return request({
        url: Vue.prototype.$api.orderSource.channelLabelList,
        method: 'post',
        data,
    })
}
// 订单导出--之前准备
export const getExportCount = data => {
    return request({
        url: Vue.prototype.$api.orderSource.getExportCount,
        method: 'post',
        data,
    })
}
// 订单导出
export const exportOrder = data => {
    return request({
        url: Vue.prototype.$api.orderSource.export,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const querySalesPerformanceChannelList = data => {
    return request({
        url: Vue.prototype.$api.orderSource.salesPerformanceChannel,
        method: 'post',
        data,
    })
}
export const querySalesPerformanceSkuList = data => {
    return request({
        url: Vue.prototype.$api.orderSource.salesPerformanceSku,
        method: 'post',
        data,
    })
}
export const advertisingInquiry = data => {
    return request({
        url: Vue.prototype.$api.orderSource.advertisingInquiry,
        method: 'post',
        data,
    })
}

export const queryOrderAchievement = data => {
    return request({
        url: Vue.prototype.$api.orderSource.orderAchievement,
        method: 'post',
        data,
    })
}
export const editOrderAchievement = data => {
    return request({
        url: Vue.prototype.$api.orderSource.orderAchievementEdit,
        method: 'post',
        data,
    })
}
export const ReasonForRefund = data => {
    return request({
        url: Vue.prototype.$api.orderSource.ReasonForRefund,
        method: 'post',
        data,
    })
}
export const ReasonForDispute = data => {
    return request({
        url: Vue.prototype.$api.orderSource.ReasonForDispute,
        method: 'post',
        data,
    })
}
export const ReasonForDisputemsg = data => {
    return request({
        url: Vue.prototype.$api.orderSource.ReasonForDisputemsg,
        method: 'post',
        data,
    })
}
export const DisputeDataInfo = data => {
    return request({
        url: Vue.prototype.$api.orderSource.DisputeDataInfo,
        method: 'post',
        data,
    })
}
export const addDisputeDataInfo = data => {
    return request({
        url: Vue.prototype.$api.orderSource.addDisputeDataInfo,
        method: 'post',
        data,
    })
}
export const getProductSkus = data => {
    return request({
        url: Vue.prototype.$api.orderSource.getProductSkus,
        method: 'post',
        data,
    })
}
export const CustomerRefunds = data => {
    return request({
        url: Vue.prototype.$api.orderSource.CustomerRefunds,
        method: 'post',
        data,
    })
}
export const wholePageModification = data => {
    return request({
        url: Vue.prototype.$api.orderSource.wholePageModification,
        method: 'post',
        data,
    })
}